#include "list.h"

typedef int (*event_handle)(struct event *);

struct event {
    listd_node n_que;
    void *data;
    event_handle e_handle;
    int e_fd;
    int e_type;
};